import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
import { viteMockServe } from "vite-plugin-mock";
import { resolve } from "path";

// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
    alias: {
      "@": resolve(__dirname, "src"),
      comps: resolve(__dirname, "src/components"),
      styles: resolve(__dirname, "src/styles"),
      plugins: resolve(__dirname, "src/plugins"),
      utils: resolve(__dirname, "src/utils"),
    },
  },
  plugins: [vue(), vueJsx(), viteMockServe(),],
});
